package com.breakfast.fun.ui.mall.comment;

import com.breakfast.fun.data.entity.home.product.ProductComment;
import com.breakfast.fun.util.Api;
import com.breakfast.fun.util.RxSchedulers;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by yukai on 16/9/29.
 */

public class GoodCommentModel implements GoodCommentContract.Model {
    @Override
    public Observable<ProductComment> getGoodCommentModel(@FieldMap Map<String, String> map) {
        return Api.getInstance().service
                .getGoodCommentModel(map)
                .compose(RxSchedulers.io_main());
    }
}
